/*
 * @Descripttion: vue and node-bs
 * @Author: weijunliang-jul
 * @Date: 2021-03-08 11:28:34
 * @LastEditors: weijunliang-jul
 * @LastEditTime: 2021-03-08 11:42:49
 */
import request from '@/utils/request'

// 提交请假申请
export function setLeave(textarea, leaveType, starttime, endtime) {
    return request({
        url: "/students/setLeave",
        method: "post",
        data: {
            reason: textarea,
            leavetype: leaveType,
            starttime: starttime,
            endtime: endtime
        }
    })
}



export function getUserLeave(pageNo, pageSize) {
    return request({
        url: "/students/getuserLeave",
        method: "get",
        params: {
            currPage: pageNo - 1,
            pageNum: pageSize,
        },
    })
}
